<include file="Public/header1" title="修改机构-组织架构" />
<script type="text/javascript" src="__PUBLIC__/js/Validform_v5.3.2_min.js"></script>
<link href="__PUBLIC__/css/validform.css" rel="stylesheet">
<div class="main">
    <div class="wrap">
        <include file="Public/sidebar" />

        <div class="content-info">
            <form action="" method="post">
                {__TOKEN__}
                <input type="hidden" name="chid" value="{$department.chid}">
                <div class="section addDep">
                    <div class="title">基本信息</div>
                    <ul>
                        <li>
                            <div class="label"><span class="warning">*</span>部门名称</div>
                            <input type="text" name="depName" class="info" value="{$department.name}">
                            <span class="text">请输入部门名称，请确认部门名称正确</span>
                        </li>
                        <!--<li>
                            <div class="label"><span class="warning"></span>所属部门</div>
                            <input type="text" name="partName" class="info">
                            <span class="text">请搜索选择所属部门，顶级部门可以不填</span>
                        </li>-->
                    </ul>
                </div>
                <div class="control">
                    <a href="{:U('index')}" class="button back">返回</a>
                    <!--button active-->
                    <button type="submit" class="button submit active">提交</button>
                </div>
            </form>
        </div>
        <div class="clr"></div>
    </div>
</div>
<script>
    $(function(){
        $(".sidebar").css("height",$(".content-info").height()+80+'px');
        var valiForm=$("form").Validform({
            tiptype:3,
            showAllError:true,
            postonce:true,
            datatype:{
                "zh2-200":/^[\u4E00-\u9FA5\uf900-\ufa2d]{2,200}$/
            }
        });

        valiForm.addRule([
            {
                ele:".info:eq(0)",
                datatype:"zh2-200",
                ajaxurl:"{:U('queryDepartment')}?chid={$department.chid}",
                nullmsg:"请填写部门信息",
                errormsg:"请填写2位以上的中文"
            }
        ]);
    })
</script>
<include file="Public/footer" />